package com.byd.sealmanage.service.impl;

import com.byd.sealmanage.dao.mybatis.TbUserMapper;
import com.byd.sealmanage.modal.po.TbUser;
import com.byd.sealmanage.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private TbUserMapper tbUserMapper;

    /**
     * 根据工号查询用户信息
     * @param jobNumber
     * @return
     */
    @Override
    public TbUser selectUserByJobNumber(String jobNumber) {
        return tbUserMapper.getUserByJobNumber(jobNumber,"1");
    }
}
